package adv5;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Out1 {

	public static void main(String[] args) {
		try {
			// 写文件的时候，自动创建，不包括文件夹
			FileOutputStream out = new FileOutputStream(
					"E:\\作业\\java56\\56名单.txt");
			out.write(65);
			out.write(66);
			out.write(10000);
			out.write(67);
			out.write("李本松是个big帅哥".getBytes());
			out.write("zhufeng是个\n老帅哥".getBytes());

			out.flush();

			out.close();
			System.out.println("输入完成");
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

	}

}
